//
//  BaseTitleView.h
//  xiuPai
//
//  Created by apple on 16/10/20.
//  Copyright © 2016年 JLXX--YZG. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BaseTitleView : UIView

@property (strong, nonatomic) NSArray<UIButton *> *buttonArray;

+(instancetype)titleViewFromXib;

//选中后的颜色
@property (nonatomic , strong) UIColor *selectedColor;

/**
 传出当前选中的按钮的tag
 */
@property (nonatomic , copy) void(^selectedButtonTag)(NSInteger tag);

/**
 选中titleView相应的tag的button
 
 @param tag tag
 */
- (void)selectButtonForTag:(NSInteger )tag;

/**
 titleView上button的点击事件,
 复写后,必须要调用 [super titleViewButtonClick:button]
 
 @param button button
 */
- (void)titleViewButtonClick:(UIButton *)button;

@end
